package xs.szw.service.model.pojo.oa;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 审批记录
 * @TableName oa_process_record
 */
@Schema(description = "审批记录")
@TableName(value ="oa_process_record")
@Data
public class ProcessRecord implements Serializable {
    /**
     * id
     */
    @Schema(description = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 审批流程id
     */
    @Schema(description = "审批流程id")
    @TableField(value = "process_id")
    private Long processId;

    /**
     * 审批描述
     */
    @Schema(description = "审批描述")
    @TableField(value = "description")
    private String description;

    /**
     * 状态
     */
    @Schema(description = "状态")
    @TableField(value = "status")
    private Integer status;

    /**
     * 操作用户id
     */
    @Schema(description = "操作用户id")
    @TableField(value = "operate_user_id")
    private Long operateUserId;

    /**
     * 操作用户
     */
    @Schema(description = "操作用户")
    @TableField(value = "operate_user")
    private String operateUser;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 删除标记（0:不可用 1:可用）
     */
    @Schema(description = "删除标记（0:不可用 1:可用）")
    @TableField(value = "is_deleted")
    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}